package com.leunpha.mini.net.listener;

import com.leunpha.mini.net.events.NetEvent;

import java.util.Observable;
import java.util.Observer;

/**
 * User: zhoujingjie
 * Date: 14-6-24
 * Time: 上午9:50
 */
public abstract class Listener implements Observer {

    @Override
    public void update(Observable o, Object arg) {
          NetEvent event = (NetEvent) arg;
          update(event);
    }

    public abstract void update(NetEvent event);
}
